
package com.kly.enums;

/**
 * 自定义消息参数类型
 * 消息回复	1
 * 普通照片	2
 * 私密照片	3
 * 普通视频	4
 * 私密视频	5
 * wlm喜欢	6
 * IM消息推送	7
 * Match匹配关系推送	8
 * 系统通知推送	9
 * 检测用户是否在2分钟内有操作	10
 * 举报	11
 * 头像变更通知	12
 * APPSFLYER消息推送	13
 * 推送model在线状状态	14
 * 推送flashchat标记	15
 * 推送remind到mechat	16
 * @author linqu
 */
public enum ParameterTypeEnum {
    MESSAGE_FEEDBACK(1, "MESSAGE_FEEDBACK"),
    NORMAL_IMAGE(2, "NORMAL_IMAGE"),
    PRIVATE_IMAGE(3, "PRIVATE_IMAGE"),
    NORMAL_VIDEO(4, "NORMAL_VIDEO"),
    PRIVATE_VIDEO(5, "PRIVATE_VIDEO"),
    WHO_LIKE_ME(6, "WHO_LIKE_ME"),
    IM_MSG_PUSH(7, "IM_MSG_PUSH"),
    MATCHED_PUSH(8, "MATCHED_PUSH"),
    SYSTEM_NOTICE(9, "SYSTEM_NOTICE"),
    USER_REST_TIMEOUT(10, "USER_REST_TIMEOUT"),
    REPORT(11, "USER_REST_TIMEOUT"),
    AVATAR_CHANGE(12, "AVATAR_CHANGE"),
    APPFLYER_PUSH(13, "APPFLYER_PUSH"),
    PUSH_MODEL_ONLINE(14, "PUSH_MODEL_ONLINE"),
    PUSH_FLASHCHAT_MARK(15, "PUSH_FLASHCHAT_MARK"),
    PUSH_REMIND(16, "PUSH_REMIND"),
    PUSH_CHAT_LEVEL(17, "PUSH_CHAT_LEVEL"),
    ;


    private ParameterTypeEnum(Integer id, String code) {
        this.id = id;
        this.code = code;
    }

    /**
     * app id
     */
    private Integer id;
    /**
     * app code
     */
    private String code;
    /**
     * app msg
     */
    private String msg;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public static ParameterTypeEnum getAppNameById(Integer id) {
        ParameterTypeEnum[] appEnumps = ParameterTypeEnum.values();
        for (ParameterTypeEnum appEnum : appEnumps) {
            if (appEnum.getId().equals(id)) {
                return appEnum;
            }
        }
        return null;
    }
}
